import Taro from "@tarojs/taro";
export const getNavbarInfo = () => {
    if (process.env.TARO_ENV === 'weapp') {
      const { statusBarHeight, system } = Taro.getSystemInfoSync()
      return {
        statusBarHeight: statusBarHeight || 0,
        navBarHeight: (statusBarHeight || 0) + 44, // 44是导航栏内容高度
        isIOS: system.includes('iOS')
      }
    }
    return { statusBarHeight: 0, navBarHeight: 44, isIOS: false }
  }